package com.happe.foodeasy.manage.service.impl;

import com.happe.foodeasy.manage.commodity.entity.CommodityStatusEntity;
import com.happe.foodeasy.manage.dao.CommodityStatusMapper;
import com.happe.foodeasy.manage.service.CommodityStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommodityStatusServiceImpl implements CommodityStatusService {
    @Autowired
    private CommodityStatusMapper commodityStatusMapper;

    @Override
    public List<CommodityStatusEntity> retrieveAllStatus() {
        return commodityStatusMapper.retrieveAllValidStatus();
    }
}
